package com.myaxuan.server.permissions.impl;

import com.myaxuan.entity.permissions.RoleMenu;
import com.myaxuan.mapper.permissions.RoleMenuMapper;
import com.myaxuan.server.permissions.RoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc255 on 2018/1/31.
 */
@Service
public class RoleMueuServiceImpl implements RoleMenuService {

	@Autowired
	private RoleMenuMapper roleMenuMapper;

	@Override
	public int deleteByPrimaryKey(String id) {
		return roleMenuMapper.deleteByPrimaryKey(id);
	}

	@Override
	public List<RoleMenu> findAll() {
		return roleMenuMapper.findAll();
	}

	@Override
	public int insertSelective(RoleMenu record) {
		return roleMenuMapper.insertSelective(record);
	}

	@Override
	public RoleMenu selectByPrimaryKey(String id) {
		return roleMenuMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(RoleMenu record) {
		return roleMenuMapper.updateByPrimaryKeySelective(record);
	}
}
